package com.kai.service.data.dto.wechat.reply;

import com.kai.service.enums.WechatMsgTypeEnum;
import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import java.io.Serializable;

@Data
@XmlAccessorType(XmlAccessType.FIELD)
public class MessageReplyDto implements Serializable {

    private static final long serialVersionUID = 2840480769365826974L;

    /**
     * 接收方帐号（收到的OpenID）
     */
    @XmlElement(name = "ToUserName")
    private String toUserName;

    /**
     * 开发者微信号
     */
    @XmlElement(name = "FromUserName")
    private String fromUserName;

    /**
     * 消息创建时间 （整型）
     */
    @XmlElement(name = "CreateTime")
    private Long createTime;

    /**
     * 消息类型
     */
    @XmlElement(name = "MsgType")
    private WechatMsgTypeEnum msgType;
}
